export interface Permission {
  id?: number | null
  createTime?: string
  updateTime?: string
  pid?: number
  name: string
  code?: string | null
  toCode?: string | null
  type: number
  status: null
  level: number
  children: Permission[]
  select: boolean
}

// 给角色分配权限数据类型
export interface DoAssignPermissionData {
  roleId: number
  permissionIdList: number[]
}

// 新增、修改菜单数据类型
export interface PermissionParams {
  id?: number | null
  pid: number
  name: string
  code: string
  level: number
}
